<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>员工基本信息列表</title>
<script src="/scripts/system/employee_list.js" type="text/javascript"></script>
<%@ include file="/common/common.jsp"%>
</head>
<body style="text-align: center;">
	<%@ include file="/common/toast.jsp"%>
	<form name="form1" method="get" action="/employee/index" id="form1">
		<div class="BodyHeight">
			<div class="operate_layer">
				<ul class="right">
					<li><a id="add" class="add_btn" href="#" url="/employee/add">
							新增员工基本信息 </a></li>
					<li style="background: none;"><a id="lbtnExportExcel"
						class="export_btn"
						href="javascript:__doPostBack('lbtnExportExcel','')">导出</a>
					</li>
					<li style="background: none;"><a id="aPrint" url="#"
						onclick="javascript:PrintOneURL();" class="print_btn">打印预览</a></li>
				</ul>
				<div class="SearchDiv">
					<div id="search" class="Pop_Search">
						<span id="lblName">员工姓名：</span> <input name="employeeName"
							type="text" maxlength="10" id="txtName" value="${employeeName}" />
						<span id="lblSkillRank">技能等级：</span> <select name="skillRank"
							id="ddlSkillRank">
							<option <c:if test="${skillRank==-1}">selected="selected"</c:if>
								value="-1">请选择</option>
							<c:forEach var="skillrank" items="${skillranks}">
								<option value="${skillrank.Id}"
									<c:if test="${skillRank==skillrank.Id}">selected="selected"</c:if>>
									${skillrank.ParamText}</option>
							</c:forEach>
						</select> <span><input type="submit" value="" id="btnSearch"
							class="searchBtn" /> <input type="button" id="btnCancelSearch"
							class="cancelBtn" url="/employee/index" /> </span>
					</div>
				</div>
			</div>
		</div>
	</form>

	<table cellpadding="0" cellspacing="0" class="common_list">
		<tr>
			<th style="width: 8%;">序号</th>
			<th style="width: 8%;">姓名</th>
			<th style="width: 8%">性别</th>
			<th style="width: 15%;">出生年月</th>
			<th style="width: 8%;">在职情况</th>
			<th style="width: 15%;">手机号码</th>
			<th style="width: 12%;">技能等级</th>
			<th class="borderRightNone">管理</th>
		</tr>
		<c:forEach var="employee" items="${employees}" varStatus="status">
			<tr>
				<td>${(pager.index-1)*pager.pageSize+status.index+1}</td>
				<td>${employee.Name}</td>
				<td>${employee.Sex}</td>
				<td>${employee.Birthday}</td>
				<td>${employee.IsWork}</td>
				<td>${employee.Mobile}</td>
				<td>${employee.SkillRank}</td>
				<td><span> <img
						src="${resource}/App_Themes/Global/images/look.gif"
						style="border-width: 0px;" /> <span>[</span><a class="view"
						href="#"
						url="/employee/view?id=${employee.Id}&returnUrl=${returnUrl}">查看</a><span>]</span>
						<img src="${resource}/App_Themes/Global/Images/037.gif"
						style="border-width: 0px;" /> <span>[</span><a class="edit"
						href="#"
						url="/employee/update?id=${employee.Id}&returnUrl=${returnUrl}">修改</a><span>]</span>
						<img src="${resource}/App_Themes/Global/images/010.gif"
						style="border-width: 0px;" /> <span>[</span><span class="sbdcls"><a
							class="del" href="#"
							url="/employee/delete?id=${employee.Id}&returnUrl=${returnUrl}">删除</a>
					</span><span>]</span> </span>
				</td>
			</tr>
		</c:forEach>
		<c:if test="${empty employees}">
			<tr>
				<td colspan="9" class="no_news">暂无数据</td>
			</tr>
		</c:if>
	</table>
	<center class="pageOuterDiv">${pager.pageHTML}</center>
</body>
</html>